#pragma once
#include <DShow.h>

BOOL GetUnconnectedPin(IBaseFilter* pFilter, PIN_DIRECTION pinDir, IPin** ppPin);
BOOL ConnectFilters(IGraphBuilder* pGraphBuilder, IPin* pPinOut, IBaseFilter* pFilterDst);
BOOL ConnectFilters(IGraphBuilder* pGraphBuilder, IBaseFilter* pFilterSrc, IBaseFilter* pFilterDst);
BOOL FindFilterInterface(IGraphBuilder* pGraphBuilder, REFGUID iid, void** ppUnk);
BOOL FindPinInterface(IBaseFilter* pFilter, REFGUID iid, void** ppUnk);
BOOL FindInterface(IGraphBuilder* pGraphBuilder, REFGUID iid, void** ppUnk);
BOOL GetConnectedFilter(IBaseFilter* pFilter, PIN_DIRECTION pinDir, IBaseFilter** ppFilterConnected);
BOOL GetDefaultCapDevice( IBaseFilter ** ppCap );
